const { querySql , queryOne }=require("../db")
function login(username,password){
   return querySql(`select * from fs_admin where username = '${username}' and password = '${password}'`)
}

function findUser(username){
    return queryOne(`select avatar,id,nickname,role,username from fs_admin where username='${username}'`)
}





module.exports = {
    login,
    findUser
}